import React, { Component, useState } from "react";
import "./App.css";
import "bootstrap/dist/css/bootstrap.css";
import Header from "./components/Header";
import List from "./components/List";

function App() {
  const [todos, setTodos] = useState([
    { id: "001", name: "逛街", done: false },
    { id: "002", name: "coding", done: true },
  ]);

  return (
    <div>
      <Header></Header>
      <List todos={todos}></List>
    </div>
  );
}

export default App;
